<table id="sso_member_extra_datagrid" ></table>
<script type="text/javascript">

$(function(){

	$('#sso_member_extra_datagrid').datagrid({
		iconCls:'icon-save',
		width:'auto',
		height:'auto',
		nowrap: true,
		fit:true,
		fitColumns:true,
		striped: true,
		url:'${request.contextPath}${namespace?default('')}/mp/sso/member-extraData.json?id=${id}',
		sortName: 'id',
		sortOrder: 'desc',
		remoteSort: true,
		singleSelect : true,
		idField:'id',
		onBeforeLoad:function(){$('#sso_member_extra_datagrid').datagrid('unselectAll');},
		columns:[[
					{field:'name',title:'${action.getDatagridTitle('net.melon.sso.pojo.MemberExtra','name')}',width:50,align:'center'},
					{field:'value',title:'${action.getDatagridTitle('net.melon.sso.pojo.MemberExtra','value')}',width:80,align:'center'},
					{field:'site',title:'${action.getDatagridTitle('net.melon.sso.pojo.MemberExtra','site')}',width:80,align:'center',formatter:function(val,rec){
						if(rec.site){
							return rec.site.name;
						}
					}}
				]],
		pagination:false,
		rownumbers:true
	});

});